calling REST api in dotnet core